package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 材料占仓来源明细对象 materialdetails
 * 
 * @author ruoyi
 * @date 2020-12-16
 */
public class Materialdetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 仓库材料明细 */
    private Long mdId;

    /** 材料单价 */
    @Excel(name = "材料单价")
    private Double mdPrice;

    /** 材料品牌
 */
    @Excel(name = "材料品牌 ")
    private String mdBrand;

    /** 材料来源 */
    @Excel(name = "材料来源")
    private String mdSupplier;

    /** 现有总量 */
    @Excel(name = "现有总量")
    private Double mdSum;

    /** 供应商 */
    @Excel(name = "供应商")
    private String mdBusiness;

    /** 现有总量 */
    @Excel(name = "现有总量")
    private Integer mdType;

    /** 总金额 */
    @Excel(name = "总金额")
    private Double mdMoney;

    /** 入库时间*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date mdIndate;

    /** 材料外键 */
    @Excel(name = "材料对象")
    private Material material;

    @Override
    public String toString() {
        return "Materialdetails{" +
                "mdId=" + mdId +
                ", mdPrice=" + mdPrice +
                ", mdBrand='" + mdBrand + '\'' +
                ", mdSupplier='" + mdSupplier + '\'' +
                ", mdSum=" + mdSum +
                ", mdBusiness='" + mdBusiness + '\'' +
                ", mdType=" + mdType +
                ", mdMoney=" + mdMoney +
                ", mdIndate=" + mdIndate +
                ", material=" + material +
                '}';
    }

    public String getMdBusiness() {
        return mdBusiness;
    }

    public void setMdBusiness(String mdBusiness) {
        this.mdBusiness = mdBusiness;
    }

    public Integer getMdType() {
        return mdType;
    }

    public void setMdType(Integer mdType) {
        this.mdType = mdType;
    }

    public Long getMdId() {
        return mdId;
    }

    public void setMdId(Long mdId) {
        this.mdId = mdId;
    }

    public Double getMdPrice() {
        return mdPrice;
    }

    public void setMdPrice(Double mdPrice) {
        this.mdPrice = mdPrice;
    }

    public String getMdBrand() {
        return mdBrand;
    }

    public void setMdBrand(String mdBrand) {
        this.mdBrand = mdBrand;
    }

    public String getMdSupplier() {
        return mdSupplier;
    }

    public void setMdSupplier(String mdSupplier) {
        this.mdSupplier = mdSupplier;
    }

    public Double getMdSum() {
        return mdSum;
    }

    public void setMdSum(Double mdSum) {
        this.mdSum = mdSum;
    }

    public Double getMdMoney() {
        return mdMoney;
    }

    public void setMdMoney(Double mdMoney) {
        this.mdMoney = mdMoney;
    }

    public Date getMdIndate() {
        return mdIndate;
    }

    public void setMdIndate(Date mdIndate) {
        this.mdIndate = mdIndate;
    }

    public Material getMaterial() {
        return material;
    }

    public void setMaterial(Material material) {
        this.material = material;
    }
}
